package charactor;

/**
 * Created by MtRider on 2021/9/18 17:28
 */
public class ThreadTest extends Thread {
    private int count=10;
    @Override
    public void run(){
        System.out.println("it's running...");
        while(true){
            System.out.print(count+" ");
            if(--count ==0){
                return ;
            }
        }
    }
    public static void main(String[] args) {
        new ThreadTest().start();
    }
}
